package com.tengju.bff.interfaces.app.common.assembler;

import com.tengju.bff.interfaces.app.common.vo.AppVersionCheckVO;
import com.tengju.user.domain.model.protocol.AppVersionCheckResult;


public class AppVersionAssembler {

    public static AppVersionCheckVO domainToVo(AppVersionCheckResult result) {

        return new AppVersionCheckVO(result.getIsNew(),
                result.getAppVersionInfo().getUpdateDesc(),
                result.getAppVersionInfo().getVersion(),
                result.getAppVersionInfo().getNeedForceUpdate(),
                result.getAppVersionInfo().getApkUrl());

    }

}
